package com.ishare.api.po.login;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @author 李嘉宾
 */
@Data
@ApiModel(description = "用户登陆参数")
public class UserLoginParam {

    /**
     * 手机号
     */
    @NotEmpty(message = "用户名或邮箱不能为空")
    @ApiParam(value = "用户名或邮箱")
    private String emailOrUserName;

    /**
     * 密码
     */
    @NotEmpty(message = "密码不能为空")
    private String password;
}
